package com.coocaa.internship.common;

/**
 * @Description: 状态码枚举
 * @Author: zwh
 * @Date: 2019-07-27
 * @Time: 15:33
 */
public enum ResultCode {
    SUCCESS(1, "成功"),
    FAILED(0, "失败"),
    USERLOGIN_NOT_EXISTS(5, "用户不存在"),
    USERINFO_NOT_EXISTS(2, "用户信息不存在"),
    USERINFO_ALREADY_EXISTS(3, "用户信息已存在"),
    PARAMETER_ERROR(4, "参数为空"),
    FILE_NOT_EXISTS(6, "文件不存在"),
    FILE_SUFFIX_ILLEGAL(7, "文件格式错误"),
    COMPANY_NOT_EXISTS(8, "该企业不存在"),
    USERCV_REPEATED_DELIVERY(9, "简历重复投递"),
    TOKEN_FAILED(10, "token失效"),
    USERCV_NOT_EXISTS(11, "用户未上传简历");


    /**
     * 状态码
     */
    private Integer code;
    /**
     * 状态消息
     */
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
